package com.central.apps.entity;

import cn.hutool.core.map.MapUtil;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 消息通知
 *
 * @author JHY
 * @date 2022/10/31
 */
@Api(tags = "消息通知")
@Data
@TableName("gq_message")
public class BlMessage {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createtime;
    @ApiModelProperty(value = "修改人")
    private String updateuser;
    @ApiModelProperty(value = "是否展示")
    private String isshow;
    @ApiModelProperty(value = "公告排序")
    private String messagesort;


    /**
     * 内容 <br/>
     * 如需要跳转 以a标签,超链接方式写内容 ↓↓↓
     * <p>跳转测试2内容,跳转链接:<a href=\"http://www.baidu.com\" rel=\"noopener noreferrer\" target=\"_blank\">百度</a></p>
     * 跳转测试1,跳转连接:<a href=\"#/reportsViewDetail?appName=prApp&fieldName=prnum&fieldValue=CDPR00001399\" rel=\"noopener noreferrer\" target=\"_blank\">CDPR00001399</a></p>
     */
    @ApiModelProperty(value = "内容")
    private String content;
    @ApiModelProperty(value = "标题")
    private String title;
    @ApiModelProperty(value = "编号")
    private String messagenum;
    @ApiModelProperty(value = "创建人id")
    private String createuser;
    @ApiModelProperty(value = "id")
    private String deptid;
    @ApiModelProperty(value = "创建人")
    private String createuserdesc;
    @ApiModelProperty(value = "状态")
    private String status;
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatetime;
    @ApiModelProperty(value = "乐观锁版本")
    @Version
    private String version;
    @ApiModelProperty(value = "接收人ID")
    private String recipient;
    @ApiModelProperty(value = "接收人名称")
    private String recipientname;
    @ApiModelProperty(value = "接收人选择")
    private String recipientselect;
    @ApiModelProperty(value = "角色ID")
    private String roleid;
    @ApiModelProperty(value = "角色编码")
    private String rolecode;
    @ApiModelProperty(value = "角色名称")
    private String rolename;
    @ApiModelProperty(value = "角色机构")
    private String roledeptname;
}
